<div class="row-fluid">
    <div class="span12">

        <div class="demo-info" style="margin-bottom:10px">
            <div class="demo-tip icon-tip"></div>
            <div>
                Click on a row to select it, click again to deselect it.
                Click the View to view the record.
            </div>
        </div>

        <table id="flex" style="display:none;"></table>

        <form id="export-form" method="post" action="<?php echo $this->Html->url(array('controller' => 'Sms', 'action' => 'export_history')); ?>" target="ExportWindow">
            <input type="hidden" name="export_type" id="export_type" value="" />
            <input type="hidden" name="export_filter_status" id="export_filter_status" value="" />
            <input type="hidden" name="export_ids" id="export_ids"  value="" />
        </form>

    </div>
</div>

<!-- URLs -->
<input type="hidden" id="table-url" value="<?php echo $this->Html->url(array('controller' => 'Sms', 'action' => 'history/get')); ?>" />
<input type="hidden" id="table-editable-url" value="<?php echo $this->Html->url(array('controller' => 'Sms', 'action' => 'history/save')); ?>" />
<input type="hidden" id="table-delete-url" value="<?php echo $this->Html->url(array('controller' => 'Sms', 'action' => 'history/delete')); ?>" />

<!-- Le Script -->
<script type="text/javascript">
    var permissions = <?php echo json_encode($permissions); ?>;
    var sms_status = <?php echo json_encode($sms_status); ?>;
</script>
<?php
echo $this->Html->script('scripts/sms/sms_history.js');
?>
